<?php

class Emms_Form_Loan_Comment extends HTech_Form
{    
    public function __construct() 
    {
        parent::__construct();   
        $this->setName('Comment');
        
        $this->setAttrib('title', $this->translate("Loan application"));
        
        //$loanMasterId = new Zend_Form_Element_Hidden('LoanMasterId');
                   
        $comments = new Zend_Form_Element_Textarea('Comments');
        $comments->setLabel("Comments")
            ->addFilter('Alnum', array('allowwhitespace' => true))
            ->setAttrib('rows', 4); 
        
        $submit = new Zend_Form_Element_Submit('Submit');
        $submit->setLabel("Submit")
            ->addDecorator(new HTech_Form_Decorator_Button(array('type' => 'submit')));
                
        $this->addElements(array($comments, $submit));
    } 
}